package com.blogspot.javagamexyz.gamexyz.utils;

public class MyMath {
	public static int min(int a, int b) {
		if (a < b) return a;
		return b;
	}
	
	public static int min(int a, int b, int c) {
		if (min(a,b) < c) return min(a,b);
		return c;
	}
	
	public static int max(int a, int b) {
		if (a > b) return a;
		return b;
	}
	
	public static int pow(int a, int b) {
		if (b > 1) return a*pow(a,b-1);
		else return a;
	}
}
